# Create a library called "lib<name>" which includes the source files given in
# the array .
# The extension is already found.  Any number of sources could be listed here.

set(INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/BASE
${CMAKE_SOURCE_DIR}/PHYSICS
${ROOT_INCLUDE_DIR}
)

include_directories( ${INCLUDE_DIRECTORIES})

set(LINK_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}
${ROOT_LIBRARY_DIR}
)

link_directories( ${LINK_DIRECTORIES})

set(SRCS
  CpPolynom1D.cxx
  CpPolynom2D.cxx
  CpPolynom3D.cxx
  CpFitter.cxx
  CpMagneticFieldMapObject.cxx
  CpMagneticFieldMap.cxx
)

String(REPLACE ".cxx" ".h" HDRS "${SRCS}")

AddLibrary(CPPhysics "${SRCS}" "${HDRS}")

#CpMagneticParticle.cxx

#  CpMagneticField.cxx
#  CpBloodForce.cxx
